package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.BaseMultipleLineVerticalCard;
import java.util.ArrayList;
import java.util.List;
import o.cdr;
import o.cgz;
import o.cih;
import o.dyf;
import o.dyk;
import o.ewm.h;
import o.ewm.j;

public class BaseMultipleLineVerticalNote extends cdr {
    public BaseMultipleLineVerticalNote(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LinearLayout linearLayout = (LinearLayout) viewGroup.findViewById(j.ˏˏ);
        View ˋ = ˋ();
        cih ˎ = ˎ();
        linearLayout.addView(ˋ, new LayoutParams(-1, -2));
        ˎ.ˏ(ˋ);
        ˊ(ˎ);
        return true;
    }

    public ArrayList<String> z_() {
        ArrayList<String> arrayList = new ArrayList();
        for (int i = 0; i < ˊॱ(); i++) {
            BaseMultipleLineVerticalCard baseMultipleLineVerticalCard = (BaseMultipleLineVerticalCard) ˊ(i);
            if (baseMultipleLineVerticalCard != null) {
                List ˋ = baseMultipleLineVerticalCard.ˋ();
                int size = ˋ.size();
                for (int i2 = 0; i2 < size; i2++) {
                    cgz o_cgz = (cgz) ˋ.get(i2);
                    if (o_cgz != null) {
                        View ˉ = o_cgz.ˉ();
                        if (ˉ != null && new dyf().ˎ(ˉ)) {
                            String ˏ = dyk.ˏ(o_cgz);
                            if (ˏ != null) {
                                arrayList.add(ˏ);
                            }
                        }
                    }
                }
            }
        }
        return arrayList;
    }

    protected View ˋ() {
        return LayoutInflater.from(this.ॱ).inflate(h.ꜟॱ, null);
    }

    public BaseMultipleLineVerticalCard ˎ() {
        return new BaseMultipleLineVerticalCard(this.ॱ);
    }

    public boolean ॱ() {
        return true;
    }

    public boolean ʽ() {
        return true;
    }
}
